from rest_framework.serializers import ModelSerializer
from goods.models import Ads, Category, Goods, HotGoods

class Ads_Serializer(ModelSerializer):
    class Meta:
        model = Ads
        fields = '__all__'

class Goods_Serializer(ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'

class HotGoods_Serializer(ModelSerializer):
    class Meta:
        model = HotGoods
        fields = '__all__'

class Category_Serializer(ModelSerializer):
    class Meta:
        model = Category
        fields = '__all__'


